<template>
	<view class="last-view-container">
		<uni-popup mask-background-color="rgba(0,0,0,0)" ref="popup" type="bottom">
			<view class="main-container flex align-center justify-between">
				<view class="flex align-center">
					<view class="cover">
						<image src="../../static/logo.png" mode="aspectFill"></image>
					</view>
					<view class="">
						<view class="title">
							失宠王妃
						</view>
						<view class="sub-title">
							上次看到第1集
						</view>
					</view>
				</view>
				<view class="flex align-center">
					<view class="continue-btn">
						继续播放
					</view>
					<uni-icons @click="close" type="closeempty" size="24" color="#ffffff"></uni-icons>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		name: "lastView",
		props: {},
		data() {
			return {
				show: false
			}
		},
		created() {

		},
		methods: {
			open() {
				this.$refs.popup.open()
			},
			close() {
				this.$refs.popup.close()
			}
		}
	}
</script>

<style lang="scss" scoped>
	.last-view-container {
		.main-container {
			background: rgb(158, 158, 158);
			width: 686rpx;
			margin-left: 32rpx;
			border-radius: 16rpx;
			margin-bottom: 32rpx;
			box-sizing: border-box;
			padding: 20rpx;

			.cover {
				margin-right: 20rpx;

				image {
					width: 90rpx;
					height: 120rpx;
					border-radius: 10rpx;
				}
			}

			.title {
				font-size: 28rpx;
				color: #ffffff;
				font-weight: bold;
			}

			.sub-title {
				font-size: 28rpx;
				color: #ffffff;
				margin-top: 20rpx;
			}

			.continue-btn {
				font-size: 24rpx;
				color: #f69316;
				background: #ffffff;
				border-radius: 100rpx;
				padding: 10rpx 20rpx;
				margin-right: 20rpx;
			}
		}
	}
</style>